import request from '@/utils/request'

// 查询优惠活动信息列表
export function getDiscountCouponActivityInfoList(params) {
  return request({
    url: '/admin/DiscountCouponActivity/getDiscountCouponActivityInfoList',
    method: 'get',
    params
  })
}

// 批量显示/隐藏优惠活动
export function changeDiscountCouponActivityShow(params) {
  return request({
    url: '/admin/DiscountCouponActivity/changeDiscountCouponActivityShow',
    method: 'post',
    params
  })
}

// 异步查询优惠活动绑定的优惠券模板信息
export function getDiscountCouponActivityTemplateInfo(params) {
  return request({
    url: '/admin/DiscountCouponActivity/getDiscountCouponActivityTemplateInfo',
    method: 'get',
    params
  })
}

// 新增/修改优惠活动信息
export function changeDiscountCouponActivityInfo(data) {
  return request({
    url: '/admin/DiscountCouponActivity/changeDiscountCouponActivityInfo',
    method: 'post',
    data
  })
}

// 添加优惠券库存
export function addDiscountCouponInventory(params) {
  return request({
    url: '/admin/DiscountCouponActivity/addDiscountCouponInventory',
    method: 'post',
    params
  })
}

// 删除优惠券活动信息（逻辑删除）
export function deleteDiscountCouponInfo(params) {
  return request({
    url: '/admin/DiscountCouponActivity/deleteDiscountCouponInfo',
    method: 'post',
    params
  })
}
